package com.market.manager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.market.dao.jpa.FaqDaoJpa;
import com.market.domain.Faq;
import com.market.manager.FaqManager;

@Service("faqManager")
public class FaqManagerImpl extends GenericManagerImpl<FaqDaoJpa, Faq, Long>
		implements FaqManager {

	@Override
	@Autowired
	public void setDao(FaqDaoJpa dao) {
		this.dao = dao;
	}

	public Faq fetchOne(Faq faq) {
		faq.setIsAssociatedLoaded(Boolean.TRUE);
		return faq;
	}

}
